﻿using Mercury.Business.IRepositories;
using Mercury.Core.BaseProvider;
using Mercury.Core.EFDbContext;
using Mercury.Core.Extensions.AutofacManager;
using Mercury.Entity.DomainModels;
using Mercury.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mercury.Business.Repositories
{
    public class BaseEntityRepository : RepositoryBase<BaseEntity>, IBaseEntityRepository
    {
        public BaseEntityRepository(MercuryContext dbContext)
        : base(dbContext)
        {

        }
        public static IBaseEntityRepository Instance
        {
            get { return AutofacContainerModule.GetService<IBaseEntityRepository>(); }
        }
    }
}
